<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>

<body>
<?php
$arr = array(60,20,70,50);
$tot = count($arr);
sort($arr);
echo "Smallest Value - ".$arr[0];
echo "Largest Value - ".$arr[$tot-1];
?>
</body>
</html>
